package com.guoning.office_system.service;

import com.guoning.office_system.model.Role;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;

public interface RoleService {
    PageBean selectRoleByCondition(Criteria criteria, PageBean pageBean);

    List<Role> selectByCode(Role role);

    int deleteByIds(List<Role> roles);

    int updateEnableByIds(List<Role> roles);

    int updateDisableByIds(List<Role> roles);

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
}